package com.yznote.cloudesk.file.mapper;

import com.yznote.cloudesk.common.pojo.File;
import com.yznote.cloudesk.common.pojo.Garbage;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Component;

import java.time.LocalDateTime;
import java.util.List;

/**
 * @author : xiaozhoutongxue
 * @date : 2022/10/20 23:21
 */
@Mapper
@Component
public interface GarbageMapper {

    Garbage getGarbageMsg(Long fileId);

    /**
     * 查找回收站下的第一层目录
     * @param userId
     * @return
     */
    List<File> getAllByTime(Long userId);
    //List<Garbage> selectByV()

    int insertGarbage(Long fileId, Long fileFaId,LocalDateTime updateTime,Long updateBy);

    Long findGarbageId(Long userId);

    List<File> getSonGarbage(Long fileId);

    int deleteGarbage(Long fileId);
}
